﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace TravelWD.Models
{
    public class RegisterModel
    {
        [Required(ErrorMessage = "Required!")]
        public string FirstName { get; set; }

        [Required(ErrorMessage = "Required!")]
        public string LastName { get; set; }

        [Required(ErrorMessage = "Required!")]
        [MinLength(6, ErrorMessage = "Enter more than 3 characters")]
        public string Username { get; set; }

        [Required(ErrorMessage = "Required!")]
        [MinLength(6, ErrorMessage="Enter more than 6 characters")]
        public string Password { get; set; }

        [Required(ErrorMessage = "Required!")]
        public string EmailID { get; set; }
    }

    public class LoginModel
    {
        [Required(ErrorMessage = "Required!")]
        public string Username { get; set; }

        [Required(ErrorMessage = "Required!")]
        public string Password { get; set; }
    }
}